import request from '../utils/request.js';
//登录
export const loginHttp = (body)=>{
	return request('/users/login',{
		method:'post',
		body
	});
}
//添加账号
export const addAccountHttp = (body)=>request("/users/addOrEditAccount",{
    method:"post",
    body
});
//获取账号列表
export const getAccountsList = (body={pageSize:10,pageNumber:1})=>request("/users/getAccountList",{
    method:"post",
    body,
});
//删除账号
export const delUser = (id)=>request("/users/delAccount?id="+id,{
    method:"delete"
});

//保存个人信息
export const saveUserInfo = (body)=>request("/users/saveUserInfo",{
    method:"post",
    body
});

//获取用户信息
export const getUserInfo = ()=>request('/users/getUserInfo');